﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Manageweb/MemberMaster.master"
    AutoEventWireup="true" CodeFile="TransferToAB2.aspx.cs" Inherits="Manageweb_TransferAccount_TransferToAB2" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <title>AB1转AB2 </title>
     <link href="../images/css.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript">dateFormat='yyyy-mm-dd'</script>
    <script src="../../js/popcalendar.js" type="text/javascript"></script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <table id="TABLE1" runat="server" border="1" cellpadding="0" cellspacing="0" width="700px"
        style="margin: 0 auto">
        <tr>
            <td colspan="2" style="font-weight: bold; color: white; background-color: #507cd1;
                text-align: left">
                账户信息
            </td>
        </tr>
        <tr>
            <td style="width: 150px">
                &nbsp;积分:
            </td>
            <td style="text-align: left">
                <asp:Label ID="lblAB1" runat="server"></asp:Label>
            </td>
        </tr>
    </table>
    <br />
    <table id="TABLE_Add_Mod" runat="server" border="1" cellpadding="0" cellspacing="0"
        width="700px" style="margin: 0 auto">
        <tr>
            <td colspan="2" style="font-weight: bold; color: white; background-color: #507cd1;
                text-align: left">
                AB1转AB2</td>
        </tr>
        <tr>
            <td style="width: 150px">
                &nbsp;会员账号:
            </td>
            <td style="text-align: left">
                <asp:TextBox ID="txtUserAccount" runat="server" Width="240px" Height="18px" ReadOnly="True"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td>
                &nbsp;用户名:
            </td>
            <td style="text-align: left">
                <asp:TextBox ID="txtUserName" runat="server" Width="240px" ReadOnly="True"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td>
                &nbsp;积分:
            </td>
            <td style="text-align: left">
                <asp:TextBox ID="txtVCurrency" runat="server" Width="240px"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtVCurrency"
                    Display="Dynamic" ErrorMessage="*" ValidationGroup="Btn_Submit"></asp:RequiredFieldValidator>
                <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="txtVCurrency"
                    Display="Dynamic" ErrorMessage="格式错误,必须为正数" ValidationExpression="^(([0-9]+\.[0-9]*[1-9][0-9]*)|([0-9]*[1-9][0-9]*\.[0-9]+)|([0-9]*[1-9][0-9]*))$"
                    ValidationGroup="Btn_Submit"></asp:RegularExpressionValidator>
            </td>
        </tr>
        <tr>
            <td>
                &nbsp; 备注:
            </td>
            <td style="text-align: left">
                <asp:TextBox ID="txtMemo" runat="server" Height="72px" TextMode="MultiLine" Width="239px"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td colspan="2" style="font-weight: bold; color: white; background-color: #507cd1">
                <asp:Button ID="Btn_Submit" runat="server" Text="转账" ValidationGroup="Btn_Submit"
                    OnClick="Btn_Submit_Click" />&nbsp;
            </td>
        </tr>
    </table>
    <br />
    <table style="margin: 0 auto;">
        <tr>
            <td style="background-color: #507CD1; font-weight: bold; color: White;">
                &nbsp; 转出记录
            </td>
        </tr>
        <tr>
          <td style="text-align:left">
             <table>
               <tr><td>开始日期:</td><td>
                   <asp:TextBox ID="txtBeginDate" runat="server"></asp:TextBox>   <img   style="cursor:hand;" src="../../js/img/calendar.gif"
     onclick='popUpCalendar(this,   <%=txtBeginDate.ClientID %>, dateFormat,-1,-1)' 
     alt='Select'></td></tr>
                <tr><td>截止日期:</td><td>
                    <asp:TextBox ID="txtEndDate" runat="server"></asp:TextBox>   <img   style="cursor:hand;" src="../../js/img/calendar.gif"
     onclick='popUpCalendar(this,   <%=txtEndDate.ClientID %>, dateFormat,-1,-1)' 
     alt='Select'></td></tr>
                <tr><td>&nbsp;</td><td>
                    <asp:Button ID="btnQuery" runat="server" onclick="btnQuery_Click" Text="查询" />
                    </tr>
              </table>
          </td>
        </tr>
        <tr>
            <td>
                <asp:GridView ID="GV_TransferRecords" runat="server" AllowPaging="True" AllowSorting="True"
                    AutoGenerateColumns="False" CellPadding="4" ForeColor="#333333" Width="700px"
                    EmptyDataText="暂无转出记录" OnPageIndexChanging="GV_TransferRecords_PageIndexChanging"
                    PageSize="20" onrowdatabound="GV_TransferRecords_RowDataBound" 
                    ShowFooter="True">
                    <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                    <RowStyle BackColor="#EFF3FB" />
                    <Columns>
                        <asp:BoundField DataField="createtime" HeaderText="日期时间" DataFormatString="{0:yyyy-MM-dd}">
                            <ItemStyle Width="120px" />
                        </asp:BoundField>
                        <asp:BoundField DataField="userid" HeaderText="用户帐号">
                            <ItemStyle Width="100px" />
                        </asp:BoundField>
                        <asp:BoundField DataField="transfercount" HeaderText="转账金额" DataFormatString="{0:F2}">
                            <ItemStyle HorizontalAlign="Right" Width="80px" />
                        </asp:BoundField>
                        <asp:BoundField DataField="memo" HeaderText="描述" />
                    </Columns>
                    <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
                    <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                    <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                    <EditRowStyle BackColor="#2461BF" />
                    <AlternatingRowStyle BackColor="White" />
                </asp:GridView>
            </td>
        </tr>
    </table>
</asp:Content>
